home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 125 / DPPCZ0203B.7z / DPPCZ0203B.ISO / Demos / Neverwinter / data1.cab / scripttemplates / custom on spawn in.txt next >
Text File  |  2002-09-10  |  5KB  |  70 lines

  1. //::///////////////////////////////////////////////
  2. //:: Custom On Spawn In
  3. //:: File Name
  4. //:: Copyright (c) 2002 Bioware Corp.
  5. //:://////////////////////////////////////////////
  6. /*
  7.  
  8. */
  9. //:://////////////////////////////////////////////
  10. //:: Created By:
  11. //:: Created On:
  12. //:://////////////////////////////////////////////
  13. #include "NW_O2_CONINCLUDE"
  14. #include "NW_I0_GENERIC"
  15.  
  16. void main()
  17. {
  18. // OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
  19.      //SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
  20.      //SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
  21.                 // This causes the creature to say a special greeting in their conversation file
  22.                 // upon Perceiving the player. Attach the [NW_D2_GenCheck.nss] script to the desired
  23.                 // greeting in order to designate it. As the creature is actually saying this to
  24.                 // himself, don't attach any player responses to the greeting.
  25.  
  26.      //SetSpawnInCondition(NW_FLAG_SHOUT_ATTACK_MY_TARGET);
  27.                 // This will set the listening pattern on the NPC to attack when allies call
  28.      //SetSpawnInCondition(NW_FLAG_STEALTH);
  29.                 // If the NPC has stealth and they are a rogue go into stealth mode
  30.      //SetSpawnInCondition(NW_FLAG_SEARCH);
  31.                 // If the NPC has Search go into Search Mode
  32.      //SetSpawnInCondition(NW_FLAG_SET_WARNINGS);
  33.                 // This will set the NPC to give a warning to non-enemies before attacking
  34.  
  35.      //SetSpawnInCondition(NW_FLAG_DAY_NIGHT_POSTING);
  36.      //SetSpawnInCondition(NW_FLAG_APPEAR_SPAWN_IN_ANIMATION);
  37.      //SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);
  38.      //SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS);
  39.                 //This will play Ambient Animations until the NPC sees an enemy or is cleared.
  40.                 //NOTE that these animations will play automatically for Encounter Creatures.
  41.  
  42.     // NOTE: ONLY ONE OF THE FOLOOWING ESCAPE COMMANDS SHOULD EVER BE ACTIVATED AT ANY ONE TIME.
  43.     //SetSpawnInCondition(NW_FLAG_ESCAPE_RETURN);    // OPTIONAL BEHAVIOR (Flee to a way point and return a short time later.)
  44.     //SetSpawnInCondition(NW_FLAG_ESCAPE_LEAVE);     // OPTIONAL BEHAVIOR (Flee to a way point and do not return.)
  45.     //SetSpawnInCondition(NW_FLAG_TELEPORT_LEAVE);   // OPTIONAL BEHAVIOR (Teleport to safety and do not return.)
  46.     //SetSpawnInCondition(NW_FLAG_TELEPORT_RETURN);  // OPTIONAL BEHAVIOR (Teleport to safety and return a short time later.)
  47.  
  48. // CUSTOM USER DEFINED EVENTS
  49. /*
  50.     The following settings will allow the user to fire one of the blank user defined events in the NW_D2_DefaultD.  Like the
  51.     On Spawn In script this script is meant to be customized by the end user to allow for unique behaviors.  The user defined
  52.     events user 1000 - 1010
  53. */
  54.     //SetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT);        //OPTIONAL BEHAVIOR - Fire User Defined Event 1001
  55.     //SetSpawnInCondition(NW_FLAG_PERCIEVE_EVENT);         //OPTIONAL BEHAVIOR - Fire User Defined Event 1002
  56.     //SetSpawnInCondition(NW_FLAG_ATTACK_EVENT);           //OPTIONAL BEHAVIOR - Fire User Defined Event 1005
  57.     //SetSpawnInCondition(NW_FLAG_DAMAGED_EVENT);          //OPTIONAL BEHAVIOR - Fire User Defined Event 1006
  58.     //SetSpawnInCondition(NW_FLAG_DISTURBED_EVENT);        //OPTIONAL BEHAVIOR - Fire User Defined Event 1008
  59.     //SetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1003
  60.     //SetSpawnInCondition(NW_FLAG_ON_DIALOGUE_EVENT);      //OPTIONAL BEHAVIOR - Fire User Defined Event 1004
  61.     //SetSpawnInCondition(NW_FLAG_DEATH_EVENT);            //OPTIONAL BEHAVIOR - Fire User Defined Event 1007
  62.  
  63. // DEFAULT GENERIC BEHAVIOR (DO NOT TOUCH) *****************************************************************************************
  64.     SetListeningPatterns();    // Goes through and sets up which shouts the NPC will listen to.
  65.     WalkWayPoints();           // Optional Parameter: void WalkWayPoints(int nRun = FALSE, float fPause = 1.0)
  66.                                // 1. Looks to see if any Way Points in the module have the tag "WP_" + NPC TAG + "_0X", if so walk them
  67.                                // 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
  68.                                //    combat.
  69.     GenerateNPCTreasure();     //* Use this to create a small amount of treasure on the creature
  70. }